
#include "stdafx.h"

#include <windows.h>

#include "game\game_main.h"

HINSTANCE g_hInstance;

/******************************************************************************/
/* WinMain
/*
/******************************************************************************/
int WINAPI WinMain( __in HINSTANCE hInstance, __in_opt HINSTANCE hPrevInstance, __in_opt LPSTR lpCmdLine, __in int nShowCmd)
{
   g_hInstance = hInstance;

   CoInitialize(NULL);

   if (!game_initialize()) {
      return -1;
   }

   game_loop();

   game_term();

   CoUninitialize();

   return 0;
}